.sidebar-section {
  background-color: rgba(0, 0, 0, 0.192)
  border-radius: 8px
  padding: 1rem
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.753)
  background-color: rgba(0, 0, 0, 0.1)
  margin-bottom: 1.5rem
  
  .section-header {
    display: flex
    justify-content: space-between
    align-items: center
    margin-bottom: 0.8rem
    padding-bottom: 0.5rem
    
    h3 {
      margin: 0
      font-size: 1.2rem
      color: rgba(255, 255, 255, 0.9)
    }
  }
  
  .section-toggle {
    background: none
    border: none
    color: rgba(255, 255, 255, 0.7)
    cursor: pointer
    padding: 0
    display: flex
    align-items: center
    justify-content: center
    transition: transform 0.3s ease
    
    &:hover {
      color: rgba(255, 255, 255, 1)
    }
    
    &.collapsed {
      transform: rotate(-90deg)
    }
  }
}

.section-content {
  max-height: 500px
  overflow-y: auto
  opacity: 1
  transition: max-height 0.3s ease, opacity 0.3s ease
  scrollbar-width: thin
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent
  
  &::-webkit-scrollbar {
    width: 6px
  }
  
  &::-webkit-scrollbar-track {
    background: transparent
  }
  
  &::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3)
    border-radius: 3px
  }
  
  &.collapsed {
    max-height: 0
    opacity: 0
    overflow: hidden
  }
}

.category-list {
  display: flex
  flex-wrap: wrap
  gap: 0.5rem
  padding: 0.2rem
}

.category-tag {
  border-radius: 4px
  padding: 0.2rem 0.5rem
  font-size: 0.85rem
  color: rgba(255, 255, 255, 0.9)
  text-decoration: none
  transition: all 0.2s ease
  background-color: rgba(255, 255, 255, 0.1)
  display: flex
  align-items: center
  
  .category-name {
    margin-right: 0.3rem
  }
  
  .category-count {
    font-size: 0.75rem
    color: rgba(255, 255, 255, 0.6)
    font-weight: normal
  }
  
  &:hover {
    background-color: rgba(255, 255, 255, 0.25)
    transform: translateY(-2px)
    
    .category-count {
      color: rgba(255, 255, 255, 0.8)
    }
  }
}

.no-categories {
  color: rgba(255, 255, 255, 0.6)
  font-style: italic
  font-size: 0.9rem
  padding: 0.5rem
  text-align: center
}

@keyframes shine {
  0% {
    transform: translateX(-100%)
  }
  100% {
    transform: translateX(100%)
  }
}